
import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import sbmart.smartserver.cache.Initialization;

/*
 * To change this template, choose Tools | Templates and open the template in
 * the editor.
 */
/**
 *
 * @author albert
 *
 */
public class Main {  

    public static void main(String[] args) {
        System.out.println("SMART SERVER STARTING...");
        AbstractApplicationContext ctx = new ClassPathXmlApplicationContext("main.xml");
        ctx.registerShutdownHook();
        ctx.start();
        System.out.println("");
        System.out.println("========================================");
        System.out.println("SMART SERVER STARTED.");
        System.out.println("SBMART DATABASE ON : " + Initialization.dbhost);
        System.out.println("See the server log at ../logs directory");        
        System.out.println("========================================");
        System.out.println("");
    }
}
